<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%> 

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加子分销商</title>
<script language="JavaScript" src="js/jquery-1.8.2.min.js"></script>
<script language="JavaScript" src="js/select.js"></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />

<style type="text/css">
	select {
   background: white;
   width: 268px;
   padding: 5px;
   font-size: 16px;
   border: 1px solid #ccc;
   height: 34px;
   -webkit-appearance: none; /*for chrome*/
}
</style>
</head>

<body style="background:url(img/top.jpg) repeat-x;" height="100%" >	
		<div class="tools">
			<ul class="toolbar">
				<li><a href="<%=request.getContextPath()%>/distributor/distributorList.action" style="font-size:20px;">
							<span>
								<img src="img/pre.gif" style="margin-top:5px;width:20px;" />
							</span>--返回
					</a>
				</li>
			</ul>
		</div>
		<div class="formtitle">
			<span style="margin-top:300px;color:white;">基本信息</span>
		</div>
		
		<form action="<%=request.getContextPath()%>/distributor/${empty distributorAdd?'addDistributor':'editDistributor'}.action" method="post">
			<input type=hidden name="distributor_id" value="${distributorAdd.distributor_id }"/>
			<ul class="forminfo">
				<c:if test="${empty distributorAdd}"> 
					<li><label>登陆账户</label> <input class="dfinput"
							name="distributor_account" value="${distributorAdd.distributor_account }"></input><i></i></li>
					<li><label>登陆密码</label> <input class="dfinput"
							name="distributor_password" value="${distributorAdd.distributor_password }"></input><i></i></li>
				</c:if>
				<li><label>分销商名</label> <input class="dfinput"
						name="distributor_name" value="${distributorAdd.distributor_name}"></input><i></i></li>
				<li><label>电话</label> <input class="dfinput"
						name="distributor_tel" value="${distributorAdd.distributor_tel}"></input><i></i></li>
				<li><label>所在地地址</label> <input class="dfinput"
						name="distributor_Address" value="${distributorAdd.distributor_Address}"></input><i></i></li>
				<li><label>分销商类型</label> 
					
					<div class="styled-select">
						<!-- <select name="distributor_type" >
		 						<option value="1">省级分销商</option>
								<option value="2">市级分销商</option>
						</select> <i> </i> -->
						
						<select id="province" name="distributor_type"  > 
						       <option  >----请选择分销商类型----</option> 
						       <option value="1">省级分销商</option> 
						       <option value="2">市级分销商</option> 
   						</select> 
					</div>
				<i></i></li>
				<li><label>隶属关系</label> 
						<div >
						<%-- <select name="distributor_pid" >
							<c:forEach items="${provinceList}" var="item" varStatus="status">
		 						<option value="${item.distributor_id}">${item.distributor_name} </option>
							</c:forEach>
						</select> <i> </i> --%>
						
						 <select class="city" > 
   	   							<option>----请选择父级分销商----</option> 
   						</select> 
   						
   						 <select class="city"  name="distributor_pid"> 
      							<option value="1">北京</option> 
					     </select> 
   						 <select class="city"  name="distributor_pid"> 
							   <c:forEach items="${provinceList}" var="item" varStatus="status">
		 							<option value="${item.distributor_id}">${item.distributor_name} </option>
							   </c:forEach>
   						</select> 
						</div>
				</li>
			
				<li>
					<label>账号状态</label>
						<input style="margin-left: 100px" name="distributor_status" type="radio" value="1" />&nbsp;正常&nbsp;
						<input style="margin-left: 100px" name="distributor_status" type="radio" value="0" />&nbsp;冻结&nbsp;
				</li>
				<li style="display: inline;margin-right: 50px"><input name=""
					type="submit" class="btn" value="确认保存" /></li>
				<li style="display: inline;"><label>&nbsp;</label><input
					name="" type="reset" class="btn" value="取消保存" /></li>
			</ul>
		</form>
</body>
</html>














